package br.com.hbt.caelum;

import java.util.TreeSet;

public class Presidente extends Funcionario {

	@Override
	double getBonificacao() {
		return super.salario * 1.45 + 2000;
	}

	public static void main(String... args) {
		TreeSet<Presidente> t = new TreeSet<Presidente>();
		t.add(new Presidente());
		t.add(new Presidente());
		System.out.println(t.first());
	}

}
